package com.ht.service.impl;

import com.ht.bean.Emp;
import com.ht.bean.Weekly;
import com.ht.dao.WeeklyDao;
import com.ht.service.WeeklyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class WeeklyServiceImpl implements WeeklyService {

    @Resource
    private WeeklyDao weeklyDao;


        @Override
    public List<Map> selectWeeklyData(String empId,Integer startIndex, Integer pageSize, Emp emp, Weekly weekly) {
        return weeklyDao.selectWeeklyData(empId,startIndex,pageSize,emp,weekly);
    }

    @Override
    public int selectWeeklyCount(String empId,Emp emp, Weekly weekly) {
        return weeklyDao.selectWeeklyCount(empId,emp,weekly);
    }


    @Override
    public boolean deleteWeeklyId(Integer worklogId) {
        return weeklyDao.deleteWeeklyId(worklogId);
    }

    @Override
    public boolean insertWeeklyMsg(Weekly weekly) {
        return weeklyDao.insertWeeklyMsg(weekly);
    }

    @Override
    public List<Map> selectWeeklyByWorklogId(Integer worklogId) {
        return weeklyDao.selectWeeklyByWorklogId(worklogId);
    }

}
